import request from '@/utils/request'

// 查询国家信息列表
export function listCountryList(query) {
  return request({
    url: '/business/countryList/list',
    method: 'get',
    params: query
  })
}

// 查询国家信息详细
export function getCountryList(id) {
  return request({
    url: '/business/countryList/' + id,
    method: 'get'
  })
}

// 新增国家信息
export function addCountryList(data) {
  return request({
    url: '/business/countryList',
    method: 'post',
    data: data
  })
}

// 修改国家信息
export function updateCountryList(data) {
  return request({
    url: '/business/countryList',
    method: 'put',
    data: data
  })
}

// 删除国家信息
export function delCountryList(id) {
  return request({
    url: '/business/countryList/' + id,
    method: 'delete'
  })
}
